//
//  NIBaseService.h
//  WeCloudSDK
//
//  Created by Navinfo on 2018/4/2.
//  Copyright © 2018年 navinfo. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "NIBaseRequestObject.h"
#import "NIResultObject.h"

#define MOBILEID_KEY @"MOBILEID"
#define DEVICETOKEN_KEY @"DEVICETOKEN"
#define TSP_V @"1.0" ////传输格式 json 为1.0
#define TSP_RS @"2" //请求来源 固定值“2” 代表手机
#define TSP_FV @"0202" //协议版本号
#define APP_VERSION [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]

//#define TSP_BASE_URL @"http://172.19.1.130:8003"
#define TSP_BASE_URL @"http://192.168.147.42:8003"//测试地址
//#define TSP_BASE_URL @"http://139.196.251.169:8002"//发版地址
//#define TSP_BASE_URL @"http://172.19.2.104:9012"//曹聪
//#define TSP_BASE_URL @"http://172.19.4.121:9012"//马强
//#define TSP_BASE_URL @"http://coiapp.ai-ways.com"//生成环境
//#define TSP_BASE_URL @"http://coiapptest.ai-ways.com"//测试环境
//#define TSP_BASE_URL @"http://coiappdev.ai-ways.com"//开发环境
@interface NIBaseService : NSObject

/**
 手机的唯一标识
 */
@property(nonatomic,readonly)NSString *mobileID;
/**
 推送注册tokenid
 */
@property(nonatomic)NSString *deviceId;

@property(nonnull,nonatomic)NIBaseRequestObject *requestObject;
@property(assign)id delegate;


- (void)sendRequest:(NIBaseRequestObject *)requestObject
            success:(void (^)(id _Nullable))success
            failure:(void (^)(NIResultObject * _Nonnull))failure;
- (void)sendRequest:(NIBaseRequestObject *)requestObject
         imageArray:(NSArray<UIImage *>*)imageArray
         imageNames:(NSArray*)imageNames
            success:(void (^)(id _Nullable))success
            failure:(void (^)(NIResultObject * _Nonnull))failure;
/**< Demo 使用*/
+ (void)setMock:(BOOL)setMock;
+ (BOOL)isMock;
@end
